package com.choosefine.it.basedata.dao;

import java.util.List;

import com.choosefine.it.basedata.model.WorkTypeClass;

public interface WorkTypeClassMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(WorkTypeClass record);

    int insertSelective(WorkTypeClass record);

    WorkTypeClass selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(WorkTypeClass record);

    int updateByPrimaryKey(WorkTypeClass record);
    
    public List<WorkTypeClass> selectAll();
    
    WorkTypeClass selectWorkTypeClassListByName(String classname);
    
    /**
     * 用于排序
     * add by juchengyag 2017/2/16
     */
    WorkTypeClass selectWorkTypeClassBySortNum(Integer sortNum);
    
    List<WorkTypeClass> getWorkTypeClassListByName(String classname);
    
    int checkWorkTypeClassInsert (String className);
}